package Submarine;

import javax.swing.*;
//支援飞机补给箱
public class airbox extends SeaObject{

    public airbox(int x){
        super(x,-30,1,30,30);
    }

    @Override
    public void move() {
        y+=speed;
    }

    public ImageIcon getImage(){
        return Images.AirBox;
    }

    public boolean isOutofBounds(){return y>World.HEIGHT+this.height;}
}
